<?php
/**
 * Created by PhpStorm.
 * User: yanghe
 * Date: 2016/4/26
 * Time: 16:51
 */
namespace App\Http\Controllers\Article;

use App\Http\Controllers\Controller;
use MyClass\Article\ArticleBase;
use MyClass\ArticleClass\ArticleClassBase;
use MyClass\CollectArticleBase\CollectArticleBase;

class ArticleController extends Controller
{
    public function find()
    {
        $articleData=ArticleBase::find();
        $articleClassData=ArticleClassBase::findArticleClass();
        $articleArticleData=CollectArticleBase::findCollectArticle();
        $res["articleData"]=$articleData;
        $res["articleClassData"]=$articleClassData;
        $res["articleArticleData"]=$articleArticleData;
        return view("user.articleBase",$res);
    }
}